#ifndef BOSST_SAMPLE_H
#define BOSST_SAMPLE_H
#include "boost/asio.hpp"
#define BLOCK_SIZE 64 * 1024
#define POINT 2001
#define IP "127.0.0.1"
using namespace boost::asio;
typedef boost::shared_ptr<ip::tcp::socket> socket_ptr;

void connect_handler(socket_ptr sock,const boost::system::error_code &ec);
void asyncClient();
void syncClient();
void fill_buffer(char *s);
int read_data(ip::tcp::socket &sock);
int send_data(ip::tcp::socket &sock);
#endif
